package com.heima.TemplateMethodExample;

public class Student extends Template{
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private String name;
    private int age;

    @Override
    public void body() {
        System.out.println("我是学生");
        System.out.println("我正在学习");
        System.out.println("我正在写作业");
        System.out.println("我正在休息");
    }
}
